<?php

	if(isset($_COOKIE['lastVisit'])) {
		setcookie('lastVisit', '', time() - 42000, '/PicImg/');
	}

	$host = $_SERVER['HTTP_HOST'];
	$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
	$extra = 'logout.php';
	
	header("Location: http://$host$uri/$extra");
	exit;

?>